
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<link href="${pageContext.request.contextPath}/css/bootstrap.min.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/layui.css"
	rel="stylesheet">
<title>查询页面</title>
<style>
th {
	text-align: center !important;
}

.title {
	margin-top:40px;
	margin-bottom: 50px;
}

.cur-result {
	float: left;
	position: relative;
}
.pre-result {
	float: right;
	position: relative;
	margin-bottom: 10px;
}
</style>
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<div style="text-align: center; color: #1abc9c">
					<h1 class="title">
						欢迎，${studentName }同学 
					</h1>
					<input type="hidden" value="${studentNumber }">
					<h3 class="cur-result">本学期成绩</h3>
					<form action="../student/select" method="post">
						<input type="hidden" id="studentNumber" name="studentNumber"
							value="${studentNumber}">
					
						<a href="../index.jsp" class="layui-btn pre-result layui-btn-primary" style="margin-left: 12px;">退出</a>
						<button type="submit" class="layui-btn pre-result">往年成绩</button>
					</form>
					<table border="1" align="center" cellspacing="0"
						class="layui-table">
						<thead>
							<tr>
								<th>课程名称</th>
								<th>考试次数</th>
								<th>考试时间</th>
								<th>平时成绩</th>
								<th>卷面成绩</th>
								<th>综合成绩</th>
								<th>是否及格</th>
							</tr>
						</thead>
						<c:forEach items="${score}" var="mr">
							<tr>
								<td class="c3"><c:out value="${mr.kcmc}"></c:out></td>
								<td class="c3"><c:out value="${mr.kscs}"></c:out></td>
								<td class="c3"><c:out value="${mr.qdcjsj}"></c:out></td>
								<td class="c3"><c:out value="${mr.xkcj}"></c:out></td>
								<td class="c3"><c:out value="${mr.sjcj}"></c:out></td>
								<td class="c3"><c:out value="${mr.zhcj}"></c:out></td>
								<td class="c3"><c:if test="${mr.pass==true}">及格</c:if> <c:if
										test="${mr.pass==false}">不及格</c:if></td>
							</tr>
						</c:forEach>
					</table>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
